package com.aha.dataanalyzeandview.controller.page;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.io.File;
import java.io.IOException;

/******************************
 * Project:           data-analyze-and-view
 * FileName:          MainPageController.java
 * ClassName:         MainPageController
 * Time:              2020/8/15 9:42
 * Version:           1.00
 * Author:            努力就是魅力
 * Description:       TODO
 ******************************/

@Controller
public class PageController {


    // index ----------------------------------------------------------------------

    @GetMapping(value = {"/", "/index"})
    public String index() {
        return "/page/index.html";
    }


    // 控制台 ----------------------------------------------------------------------

    @GetMapping(value = "/console/console")
    public String console() {
        return "/page/console/console.html";
    }

    @GetMapping(value = "/console/dashboard")
    public String dashboard() {
        return "/page/console/dashboard.html";
    }


    @GetMapping(value = "/console/workplace")
    public String workplace() {
        return "/page/console/workplace.html";
    }

    // 系统配置 -------------------------------------------------------------------
    @GetMapping(value = "/system/user")
    public String userPage() {
        return "/page/system/user.html";
    }

    @GetMapping(value = "/system/role")
    public String rolePage() {
        return "/page/system/role.html";
    }

    @GetMapping(value = "/system/authorities")
    public String authoritiesPage() {
        return "/page/system/authorities.html";
    }

    @GetMapping(value = "/system/dictionary")
    public String dictionaryPage() {
        return "/page/system/dictionary.html";
    }

    @GetMapping(value = "/system/organization")
    public String organizationPage() {
        return "/page/system/organization.html";
    }

    @GetMapping(value = "/system/login-record")
    public String loginRecordPage() {
        return "/page/system/login-record.html";
    }


    // example --------------------------------------------------------------------


    @GetMapping(value = "/example/calendar")
    public String calendar() {
        return "/page/example/calendar.html";
    }

    @GetMapping(value = "/example/calendar2week")
    public String calendar2week() {
        return "/page/example/calendar-2week.html";
    }

    @GetMapping(value = "/example/course")
    public String coursePage() {
        return "/page/example/course.html";
    }

    @GetMapping(value = "/example/dialog")
    public String dialogPage() {
        return "/page/example/dialog.html";
    }

    @GetMapping(value = "/example/file")
    public String filePage() {
        return "/page/example/file.html";
    }

    @GetMapping(value = "/example/question")
    public String questionPage() {
        return "/page/example/question.html";
    }

    @GetMapping(value = "/example/side-ajax")
    public String sideAjaxPage() {
        return "/page/example/side-ajax.html";
    }

    @GetMapping(value = "/example/side-more")
    public String sideMorePage() {
        return "/page/example/side-more.html";
    }

    @GetMapping(value = "/example/table-curd")
    public String tableCurdPage() {
        return "/page/example/table-crud.html";
    }

    // 进阶插件demo ------------------------------------------------------


    @GetMapping(value = "/plugin/advance/contextMenu")
    public String contextMenuPage() {
        return "/page/plugin/advance/contextMenu.html";
    }

    @GetMapping(value = "/plugin/advance/dataGrid")
    public String dataGridPage() {
        return "/page/plugin/advance/dataGrid.html";
    }

    @GetMapping(value = "/plugin/advance/formX")
    public String formXPage() {
        return "/page/plugin/advance/formX.html";
    }

    @GetMapping(value = "/plugin/advance/printer")
    public String printerPage() {
        return "/page/plugin/advance/printer.html";
    }

    @GetMapping(value = "/plugin/advance/printer-tuwen")
    public String printerTuwenPage() {
        return "/page/plugin/advance/printer-tuwen.html";
    }

    @GetMapping(value = "/plugin/advance/split")
    public String splictPage() {
        return "/page/plugin/advance/split.html";
    }

    @GetMapping(value = "/plugin/advance/tableX")
    public String tableXPage() {
        return "/page/plugin/advance/tableX.html";
    }

    // 基础插件demo ------------------------------------------------

    @GetMapping(value = "/plugin/basic/cascader")
    public String cascaderPage() {
        return "/page/plugin/basic/cascader.html";
    }

    @GetMapping(value = "/plugin/basic/dialog")
    public String dialogPage2() {
        return "/page/plugin/basic/dialog.html";
    }

    @GetMapping(value = "/plugin/basic/dialog-iframe")
    public String dialogIframePage() {
        return "/page/plugin/basic/dialog-iframe.html";
    }

    @GetMapping(value = "/plugin/basic/dialog-url")
    public String dialogUrlPage() {
        return "/page/plugin/basic/dialog-url.html";
    }

    @GetMapping(value = "/plugin/basic/dropdown")
    public String dropdownPage() {
        return "/page/plugin/basic/dropdown.html";
    }

    @GetMapping(value = "/plugin/basic/notice")
    public String noticePage() {
        return "/page/plugin/basic/notice.html";
    }

    @GetMapping(value = "/plugin/basic/steps")
    public String stepsPage() {
        return "/page/plugin/basic/steps.html";
    }

    @GetMapping(value = "/plugin/basic/tagsInput")
    public String tagsInputPage() {
        return "/page/plugin/basic/tagsInput.html";
    }

    // 其他插件 demo --------------------------------------------------

    @GetMapping(value = "/other/circleProgress")
    public String circleProgressPage(){
        return "/page/plugin/other/circleProgress.html";
    }
    @GetMapping(value = "/other/editor")
    public String editorPage(){
        return "/page/plugin/other/editor.html";
    }
    @GetMapping(value = "/other/layui")
    public String layuiPage(){
        return "/page/plugin/other/layui.html";
    }
    @GetMapping(value = "/other/more")
    public String morePage(){
        return "/page/plugin/other/more.html";
    }
    @GetMapping(value = "/other/mouseWheel")
    public String mouseWheelPage(){
        return "/page/plugin/other/mousewheel.html";
    }
    @GetMapping(value = "/other/other")
    public String otherPage(){
        return "/page/plugin/other/other.html";
    }

    // 页面模板 ------------------------------------------------------------

    @GetMapping(value = "/template/error/403")
    public String error403Page(){
        return "/page/template/error/error-403.html";
    }
    @GetMapping(value = "/template/error/404")
    public String error404Page(){
        return "/page/template/error/error-404.html";
    }
    @GetMapping(value = "/template/error/500")
    public String error500Page(){
        return "/page/template/error/error-500.html";
    }
    @GetMapping(value = "/template/form/form-advance")
    public String formAdvancePage(){
        return "/page/template/form/form-advance.html";
    }
    @GetMapping(value = "/template/form/form-basic")
    public String formBasicPage(){
        return "/page/template/form/form-basic.html";
    }
    @GetMapping(value = "/template/form/form-step")
    public String formStepPage(){
        return "/page/template/form/form-step.html";
    }
    @GetMapping(value = "/template/login/forget")
    public String forgetPage(){
        return "/page/template/login/forget.html";
    }
    @GetMapping(value = "/template/login/login")
    public String loginPage(){
        return "/page/template/login/login.html";
    }
    @GetMapping(value = "/template/login/reg")
    public String registryPage(){
        return "/page/template/login/reg.html";
    }
    @GetMapping(value = "/template/table/table-advance")
    public String tableAdvancePage(){
        return "/page/template/table/table-advance.html";
    }
    @GetMapping(value = "/template/table/table-basic")
    public String tableBasicPage(){
        return "/page/template/table/table-basic.html";
    }
    @GetMapping(value = "/template/table/table-curd")
    public String tableCurdPage2(){
        return "/page/template/table/table-card.html";
    }
    @GetMapping(value = "/template/table/table-img")
    public String tableImgPage(){
        return "/page/template/table/table-img.html";
    }
    @GetMapping(value = "/template/table/table-info")
    public String tableInfoPage(){
        return "/page/template/table/user-info.html";
    }



    // 宏观数据 -------------------------------------------------------
    @GetMapping(value = "/premiumMarkets/macroIndex")
    public String macroIndexPage() {
        return "/page/macro_index/macroIndex.html";
    }


    @GetMapping(value = "/premiumMarkets/valueRecommend")
    public String valueRecommendPage() {
        return "/page/macro_index/valueRecommend.html";
    }


    // 财务指标 --------------------------------------------------------
    @GetMapping(value = "financialReport/balanceSheet")
    public String balanceSheet() {
        return "/page/financial_report/balanceSheet.html";
    }

    @GetMapping(value = "/financialReport/cashFlowStatement")
    public String cashFlowStatement() {
        return "/page/financial_report/cashFlowStatement.html";
    }

    @GetMapping(value = "/financialReport/incomeStatement")
    public String incomeStatement() {
        return "/page/financial_report/incomeStatement.html";
    }


    @GetMapping(value = "/financialReport/basicFinancialData")
    public String basicFinancialData() {
        return "/page/financial_report/basicFinancialData.html";
    }


    // 自动报表 ----------------------------------------------------------
    @GetMapping(value = "/autoreport/frame")
    public String frame() {
        return "/page/autoreport/frame.html";
    }

    @GetMapping(value = "/autoreport/datasource")
    public String datasource() {
        return "/page/autoreport/datasource.html";
    }

    @GetMapping(value = "/autoreport/webcat")
    public String webcat() {
        return "/page/autoreport/webcat.html";
    }


    // 微信机器人 ----------------------------------------------------------
    @GetMapping(value = "/wx_robot/sendMsgRobotSettingsPage")
    public String sendMsgRobotSettingsPage(){return  "/page/wx_robot/send_msg_settings.html";}

}
